<template>
  <div class="title-card">
    <!-- <el-col :span="24">
      <span>
        <span>12.27亿元</span>
        <p>全市非税收入额</p>
      </span>
    </el-col> -->

    <div style="position: relative">
      <!-- <img src="./1@2x.png" style="width:100%" /> -->
      <dv-decoration-9 style="width: 11rem; height: 11rem;margin:0 auto">
        <span>
          <span class="text-span">{{ cockpitData.num }}</span>
          <p class="text-span-danwei">{{ cockpitData.dw }}</p>
        </span></dv-decoration-9
      >
      <!-- <div
        style="
          position: absolute;
          z-indent: 2;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        "
      >
        <el-col :span="24">
          <span>
            <span class="text-span">{{ cockpitData.num }}</span>
            <p class="text-span-danwei">{{ cockpitData.dw }}</p>
          </span>
        </el-col>
      </div> -->
    </div>
    <div style="position: relative">
      <img src="./1-1@2x.png" style="width: 100%" />
      <div
        style="
          position: absolute;
          z-indent: 2;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        "
      >
        <el-col :span="24">
          <span>
            <span class="text-span-name">{{ cockpitData.title }}</span>
          </span>
        </el-col>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    cockpitData: {
      type: Object,
      default: function () {
        return {
          imgUrl: "./text.png",
          num: "45",
          dw: "个",
          title: "重大开工项目",
        };
      },
    },
  },
};
</script>

<style scoped>
.text-span {
  background: linear-gradient(0deg, #a3dafe 0%, #ffffff 100%);
  background-clip: text;
  color: transparent;
  font-size: 3rem;
}
.text-span-danwei {
  font-size: 2rem;
  text-align: center;
  padding-top: 0.5rem;
}
.text-span-name {
  font-size: 1.5rem;
}
</style>